{% extends "authentication/base.html" %}

{% block title %}错误{{ code }}{% endblock %}

{% block content %}
  <div class="card mt-3 mb-3" style="background-color: {% if low %}{{ low_color }}{% else %}#ffa0b1{% endif %};">
    <h5 class="card-header">
      <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" class="bi bi-person-up" viewBox="0 0 16 16">
        <path fill-rule="evenodd" d="M12.5 16a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm.354-5.854a.5.5 0 0 0-.708 0l-1.5 1.5a.5.5 0 0 0 .708.708l.646-.647V14.5a.5.5 0 0 0 1 0v-2.793l.646.647a.5.5 0 0 0 .708-.708l-1.5-1.5ZM11 5a3 3 0 1 1-6 0 3 3 0 0 1 6 0ZM8 7a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"></path>
        <path d="M8.256 14a4.474 4.474 0 0 1-.229-1.004H3c.001-.246.154-.986.832-1.664C4.484 10.68 5.711 10 8 10c.26 0 .507.009.74.025.226-.341.496-.65.804-.918C9.077 9.038 8.564 9 8 9c-5 0-6 3-6 4s1 1 1 1h5.256Z"></path>
      </svg>
      错误{{ code }}
    </h5>
    <div class="card-body">
      <p class="card-text">{{ message }}</p>
      <a class="card-link text-decoration-none link-light" href="{% url 'authentication:login' %}">返回登录</a>
    </div>
  </div>
{% endblock %}